package poo.exo1a;

public class Finally {

    public static void f(int n) 
    {
            try { 
                    if (n>1) throw new MonException("Catch dans f, n="+String.valueOf(n) );
            } catch (MonException me) {
                            System.out.println(me.getMessage());
            }finally {
                    System.out.println("Dans finally, n= "+n);
            }
    
    }
    public static void main(String[] args)  {
            // TODO Auto-generated method stub
            int n ; 
            f( 1 ) ;
            f( 2 ) ;
    }

}
